package cn.tedu.shoppingmall.mapper;

import cn.tedu.shoppingmall.vo.AddCls;
import cn.tedu.shoppingmall.vo.Class;
import cn.tedu.shoppingmall.vo.ReportCls;
import org.apache.ibatis.annotations.Insert;

import org.apache.ibatis.annotations.Select;
import org.mapstruct.Mapper;

import java.util.List;
//资讯类数据库增删改查操作
@Mapper
public interface ReportClsMapper {
    //增加资讯类
    @Insert("insert into ReportCls(name,url) values(#{name},#{url})")
    void addReportCls(AddCls cls);


    //增加资讯类
    @Select("select * from ReportCls")
    List<ReportCls> select();

}
